<div>
    <table>
        <tr>
            <th>ID</th>
            <th>名字</th>
            <th>操作</th>
        </tr>
        <tr *ngFor="let item of lists">
            <td>{{item.id}}</td>
            <td><div [appHighlight]="color" defaultColor="violet">{{item.name}}</div></td>
            <td><button (click)="openDetail(item)">查看</button></td>
        </tr>
    </table>
</div>
<app-detail [data]="childData" *ngIf="childData!=null" (checked)="checkedBack($event)"></app-detail>
